<link href="../lib/select/bootstrap-tagsinput.css" rel="stylesheet">
<script src="../lib/select/bootstrap-tagsinput.js"></script>
<style>
input {
	font-size: 14px;
}

.select2-dropdown {
	z-index: 20000000;
}
.layer_container .sub_content {
	position: absolute;
	bottom: 0px;
	top: 40px;
	left: 0;
	right: 0;
}
.layer_container .sub_content .body_container{
	bottom: 0px;
    border-bottom: none;
}
</style>
<div class="layer_container">
	<div class="body_container">
		<div class="layer_content" style="padding: 0 0 10px 0">
			<div class="main-header-nav">
				<ul class="nav nav-underline" role="tablist" id="hospital_tab">
					<li class="active tab-choose">
						<a href="#hospital_info_t" data-toggle="tab">入院信息</a>
					</li>
					<li class="tab-choose">
						<a href="#diagnose_info_t" data-toggle="tab">过敏药物</a>
					</li>
					{{# if($.inArray("brxx_mz",authorityArr) >=0){ }}
					<li class="tab-choose">
						<a href="#patient_info_t" data-toggle="tab">病人信息</a>
					</li>
					{{# } }}
				</ul>
			</div>
			<div class="sub_content">
				<div class="tab-content" style="height: 100%;">
					<div class="tab-pane active" id="hospital_info_t" style="height: 100%;">
						<div class="layer_container">
							<div class="body_container">
								<div class="layer_content">
									<form class="form-horizontal">
										<div class="form-group">
											<label class="col-sm-2 control-label">入院科室</label>
											<div class="col-sm-4">
												<select class="form-control" id="ruyuankeshi">
													{{# var deptinfo = d.deptinof; }} {{# for(var i = 0;i
													<deptinfo.length;i++){ }}
													
													<option value={{deptinfo[i]['bck01'] }}>{{deptinfo[i]['bck03'] }}</option>
													{{# } }}
													</select>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">医疗付款方式</label>
											<div class="col-sm-4">
											   <select class="form-control" id="payinfo_id">
											   <option value='0'>---请选择---</option>
												{{# var payinof = d.payinof; }} {{# for(var i = 0;i
													<payinof.length;i++){ }}
													
													<option value={{payinof[i]['abj01'] }}>{{ payinof[i]['abj02'] }}</option>
												{{# } }}
												</select>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">预交金</label>
											<div class="col-sm-4">
												<input type="text" class="form-input" placeholder="0.0" id="vbn09">
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">诊断</label>
											<div class="col-sm-8" id="tagsinput_item">
												<input type="text" value=""  class="form-input" id="diagnose_tip" placeholder="这是诊断内容标签" />
												<!-- 诊断下拉 -->
												<div id="inhospital_drop"></div>
												
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">病情</label>
											<div class="col-sm-10" >
												<div class="checkbox" id= "vbn20">
													<label class="checkbox-inline">
													  <input class="magic-checkbox" type="checkbox"  value="危" ><span>危</span>
													</label>
													<label class="checkbox-inline">
													  <input class="magic-checkbox" type="checkbox"  value="急" ><span>急</span>
													</label>
													<label class="checkbox-inline">
													  <input class="magic-checkbox" type="checkbox"  value= "重" ><span>重</span>
													</label>
													<label class="checkbox-inline">
													  <input class="magic-checkbox" type="checkbox"  value="一般" ><span>一般</span>
													</label>
													<label class="checkbox-inline">
													  <input class="magic-checkbox" type="checkbox"  value="传染" ><span>传染</span>
													</label>
													<label class="checkbox-inline">
													  <input class="magic-checkbox" type="checkbox"  value="隔离" ><span>隔离</span>
													</label>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">接送方式</label>
											<div class="col-sm-10">
												<div class="checkbox"  id = "vbn21">
														<label class="checkbox-inline">
														  <input class="magic-checkbox" type="checkbox"  value="步行"> <span>步行</span>
														</label>
														<label class="checkbox-inline">
														  <input class="magic-checkbox" type="checkbox" id="" value="扶"><span>扶</span>
														</label>
														<label class="checkbox-inline">
														  <input class="magic-checkbox" type="checkbox" id="" value="背" ><span>背</span>
														</label>
														<label class="checkbox-inline">
														  <input class="magic-checkbox" type="checkbox" id="" value="推椅" ><span>推椅</span>
														</label>
														<label class="checkbox-inline">
														  <input class="magic-checkbox" type="checkbox" id="" value="担架" ><span>担架</span>
														</label>
														<label class="checkbox-inline">
														  <input class="magic-checkbox" type="checkbox" id="" value="车床" ><span>车床</span>
														</label>
														<label class="checkbox-inline">
														  <input class="magic-checkbox" type="checkbox" id="" value="其他车辆" ><span>其他车辆</span>
														</label>
														<label class="checkbox-inline">
														  <input class="magic-checkbox" type="checkbox" id="" value="本院救护车送入" ><span>本院救护车送入</span>
														</label>
												</div>
											</div>
										</div>
										
										<div class="form-group">
											<label class="col-sm-2 control-label">门诊诊治医生</label>
											<div class="col-sm-4">
												<input type="text" class="form-input" value='{{bce03}}'>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">预入时间</label>
											<div class="col-sm-4">
												<input type="text" id="vbn10" class="layer-date laydate-icon " value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">有效时间</label>
											<div class="col-sm-4">
												<input type="text" id="vbn11" class="layer-date laydate-icon" value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})">
											</div>
										</div>
										
										<div class="form-group">
											<label class="col-sm-2 control-label">备注</label>
											<div class="col-sm-8">
												<textarea rows="3" class="form-input" id="vbn14"></textarea>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">开单时间</label>
											<div class="col-sm-4">
												<input type="text" id="vbn04" class="layer-date laydate-icon " value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">联系人</label>
											<div class="col-sm-4">
												<input type="text" class="form-input" id="vbn07">
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">联系电话</label>
											<div class="col-sm-4">
												<input type="text" class="form-input" id="vbn08">
											</div>
										</div>
										<div class="form-group">
											<div class="col-sm-offset-2 col-sm-4">
												<div class="checkbox">
													<label>
														<input type="checkbox" class="magic-checkbox" id="isPrintRuyuan">
														<span>打印入院通知单</span>
													</label>
												</div>
											</div>
										</div>
									</form>
								</div>
							</div>
						</div>
						
					</div>
					<div class="tab-pane" id="diagnose_info_t" style="height: 100%;">
						<div class="main-content-table" style="top:0px">
							<div class="main-table-container" style="top: 0;bottom:0" >
								<table class="table table-border table-striped table-hover" id="allergy_drug_table">
									<thead>
										<tr>
											<td>过敏药物</td>
											<td>说明</td>
											<td>操作</td>
										</tr>
									
									</thead>
									{{# if(d.druginfo.length>0) {}}
									<tbody>
									{{# $.each(d.druginfo,function(index,item){ }}
										<tr>
											<td>
												<input type="text" value="{{item.bbx05?item.bbx05:''}}" class="form-input search_allergy" placeholder="这是过敏药物标签" />
												<input type="hidden" class = "bbx01" value="{{item.bbx01?item.bbx01:''}}"/>
											</td>
											<td>
												<input class="shouye_shuoming form-input" type="text" value="{{item.val05?item.val05:''}}">
											</td>
											<td>
												<input class="btn btn-white btn-min-xs del_allergy" type="button" value="删除 " />
												<input class="btn btn-white btn-min-xs add_allergy" type="button" value="新增 " />
											</td>
										</tr>
										{{# }) }}
									</tbody>
									{{# } else {}}
									<tbody>
										<tr>
											<td>
												<input type="text" value="" class="form-input search_allergy" placeholder="这是过敏药物标签" />
												<input type="hidden" class = "bbx01" value=""/>
											</td>
											<td>
												<input class="shouye_shuoming form-input" type="text" value="">
											</td>
											<td>
												<input class="btn btn-white btn-min-xs del_allergy" type="button" value="删除 " />
												<input class="btn btn-white btn-min-xs add_allergy" type="button" value="新增 " />
											</td>
										</tr>
									</tbody>
									{{# } }}
								</table>
								
							</div>
							<div id="allergy_dropbox"></div>
						</div>
					</div>
					{{# if($.inArray("brxx_mz",authorityArr) >=0){ }}
					<div class="tab-pane" id="patient_info_t" style="height: 100%;"></div>
					{{# } }}
				</div>
			</div>
		</div>
	</div>
	<div class="footer_container">
		<button class="btn btn-green" onclick="saveRuyuan()">确定</button>
		<button class="btn btn-white" id="remove_action">取消</button>
	</div>
	<!-- 诊断下拉 -->
<div id="self_diagnose_dropbox"></div>
</div>
